package cn.com.code.design;

import java.util.Map;

/**
 * 选择题类
 * @author zhengpei
 * @date 2021/9/16
 */
public class ChoiceQuestion {

  //题目名称
  private String name;

  // 题目选项 A B C D
  private Map<String,String> option;

  // 题目答案
  private String key;

  public ChoiceQuestion() {
  }

  public ChoiceQuestion(String name, Map<String, String> option, String key) {
    this.name = name;
    this.option = option;
    this.key = key;
  }

  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name;
  }

  public Map<String, String> getOption() {
    return option;
  }

  public void setOption(Map<String, String> option) {
    this.option = option;
  }

  public String getKey() {
    return key;
  }

  public void setKey(String key) {
    this.key = key;
  }
}
